package com.hjq.fcloud.ui.fragment

import android.os.Bundle
import android.widget.Button
import com.hjq.base.LazyFragment
import com.hjq.fcloud.R
import com.hjq.fcloud.utils.Logger
import com.hjq.fcloud.widget.BrowserView

/**
 * 融资需求全览
 */
class FinancingOverviewFragment : LazyFragment() {

    companion object {
        const val INTENT_IN_ITEM = "item"

        fun newInstance(text: String): FinancingOverviewFragment {
            var fragment = FinancingOverviewFragment()
            var bundle = Bundle()
            bundle.putString(INTENT_IN_ITEM, text)
            fragment.arguments = bundle
            return fragment
        }
    }

    private val btn: Button? by lazy { findViewById(R.id.btn) }

    override fun getLayoutId(): Int {
        return R.layout.fragment_financing_overview
    }

    override fun initView() {
        var title = arguments?.getString(INTENT_IN_ITEM)
        Logger.i("--->>>FinancingOverviewFragment initView title:"+title)
        btn?.setText(title)
    }


    override fun lazyLoad() {
        var title = arguments?.getString(INTENT_IN_ITEM)
        Logger.i("--->>>FinancingOverviewFragment initData initData initData title:"+title)
    }

    override fun onDestroyView() {
        super.onDestroyView()
        var title = arguments?.getString(INTENT_IN_ITEM)
        Logger.i("--->>>FinancingOverviewFragment onDestroyView title:"+title)
    }
}